$color:rgb(220, 212, 212);
.dy-slider {
    position: relative;
    list-style: none;
    margin: 0px;
    padding: 0px;
    width: 640px;
    height: 360px;
    border-radius: 5px;
    overflow: hidden;
    border: 1px solid #f5f5f5;
    &:hover {
        .prev {
            left: 5%;
            transition: left 0.5s ease-in;
        }
        .next {
            right: 5%;
            transition: right 0.5s ease-in;
        }
    }
    ul {
        list-style: none;
        padding: 0;
        margin: 0;
        height: 100%;
    }
    li {
        position: absolute;
        width: 100%;
        left: -100%;
        top: 0;
        margin: auto;
        img {
            max-width: 100%;
            max-height: 100%;
        }
    }
    >button {
        padding: 0;
        margin: 0;
        border: none;
        position: absolute;
        z-index: 1000;
        font-size: 30px;
        background-color: rgba(0, 0, 0, 0.4);
        width: 40px;
        height: 40px;
        line-height: 40px;
        border-radius: 20px;
        text-align: center;
        &:hover {
            background-color: rgba(0, 0, 0, 0.6);
        }
        &:active {
            background-color: rgba(0, 0, 0, 0.6);
        }
    }
    // css箭头
    %jt {
        position: absolute;
        top: 50%;
        transform: translate(0, -50%);
        z-index: 10;
        width: 40px;
        height: 40px;
        .u {
            left: 12px;
            display: inline-block;
            height: 3px;
            width: 15px;
            background-color: #fff;
            transform: rotate(-45deg);
            position: absolute;
            top: 15px;
        }
        .d {
            left: 12px;
            display: inline-block;
            height: 3px;
            width: 15px;
            background-color: #fff;
            transform: rotate(45deg);
            position: absolute;
            top: 24px;
        }
    }
    .prev {
        @extend %jt;
        cursor: pointer;
        top: 50%;
        left: -20%;
        &:focus {
            outline: none;
        }
        transform: translate(0, -50%);
        transition: left 0.5s ease-out;
    }
    .next {
        @extend %jt;
        cursor: pointer;
        top: 50%;
        right: -20%;
        &:focus {
            outline: none;
        }
        transform: translate(0, -50%);
        transition: right 0.5s ease-out;
        .u {
            left: 15px;
            transform: rotate(45deg);
        }
        .d {
            left: 15px;
            transform: rotate(-45deg);
        }
    }
    // 切换动画
    @keyframes slide-l {
        0% {
            left: 0;
        }
        100% {
            left: -100%;
        }
    }
    @keyframes slide-r {
        0% {
            left: 100%;
        }
        100% {
            left: 0%;
        }
    }
    @keyframes slide-l1 {
        0% {
            left: 0%;
        }
        100% {
            left: 100%;
        }
    }
    @keyframes slide-r1 {
        0% {
            left: -100%;
        }
        100% {
            left: 0%;
        }
    }
}